package io.adrainty.bolee.insurance.models.bo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.adrainty.bolee.framework.commons.basic.EnableEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * <p>PlanEarningsEntity</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 方案给付计划
 * @since 2025/8/12 11:03:50
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "方案给付计划")
@TableName("tab_plan_earnings")
public class PlanEarningsBO extends BaseBO {

    @Serial
    private static final long serialVersionUID = -2922325790196917589L;

    @Schema(description = "保险方案id")
    private Long planId;

    @Schema(description = "给付类型:0终身领取 1固定领取")
    private String earningsType;

    @Schema(description = "周期数")
    private Integer periods;

    @Schema(description = "领取计划")
    private String earningsJson;

    @Schema(description = "数据状态：0正常 1禁用")
    private EnableEnum dataState;

}
